package no.mehdi.usereg.rfid.listeners;

import no.mehdi.usereg.rfid.events.TagLossEventApp;

import org.springframework.context.ApplicationListener;

import com.phidgets.event.TagLossEvent;
import com.phidgets.event.TagLossListener;


public class TagLossListenerApp implements TagLossListener,ApplicationListener<TagLossEventApp>{
	

	@Override
	public void onApplicationEvent(TagLossEventApp arg0) {
		System.out.println("Fired a "+ arg0);
	}

	@Override
	public void tagLost(TagLossEvent taglossevent) {
		onApplicationEvent(new TagLossEventApp(taglossevent.getSource()));
	}
	
	

}
